package com.ttg.web.dao.Impl;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttg.model.mapper.AdminChannelLangMapper;
import com.ttg.model.pojo.AdminChannelLang;
import com.ttg.web.dao.AdminChannelLangDao;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZQ
 * @version 1.0
 * @Description
 * @date 2021/3/10 9:34
 */
@Service
public class AdminChannelLangDaoImpl extends ServiceImpl<AdminChannelLangMapper, AdminChannelLang> implements AdminChannelLangDao {

    @Override
    public List<AdminChannelLang> selectList(List<Long> aclChlIds, String lang) {
        LambdaQueryWrapper<AdminChannelLang> wrapper = Wrappers.lambdaQuery();
        wrapper.eq(AdminChannelLang::getAclLang, lang)
                .in(AdminChannelLang::getAclChlId, aclChlIds);
        return list(wrapper);
    }


}
